package com.ljx.recruitment.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.recruitment.user.domain.entity.Menu;
import com.ljx.recruitment.user.domain.vo.req.MenuToRoleReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper extends BaseMapper<Menu> {
    List<Long> getMenuIdByRoleIds(@Param("roleIds") List<Long> roleIds);

    void deleteRoleMenu(Long roleId);

    void allocationToRole(@Param("roleId") Long roleId, @Param("list") List<Long> permissionIds);
}
